package com.wgchao.identityrightsmanagement.infrastructure.jpa.repository;

import com.wgchao.identityrightsmanagement.infrastructure.jpa.entity.SysPermissionOfficeFunction;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @ClassName: SysPermissionOfficeFunctionRepository
 * @author: wgchao
 * @createTime: 2020/6/28 5:39 PM
 * @Description: TODO
 */
@Repository
public interface SysPermissionOfficeFunctionRepository extends JpaRepository<SysPermissionOfficeFunction, Long> {
    List<SysPermissionOfficeFunction> findAllByPid(Long pid);
    void deleteAllByPid(Long pid);
}
